/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.client;

import java.util.Collection;
import java.util.List;

import com.xy.biz.mes.domain.req.GetManufactureTaskRequest;
import com.xy.biz.mes.domain.req.ListManufactureTaskRequest;
import com.xy.biz.mes.domain.resp.GetManufactureTaskResponse;
import com.xy.biz.mes.listener.ManufactureTaskListener;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureTaskClient {

	/**
	 * 添加
	 *
	 * @param listener
	 */
	void addListener(ManufactureTaskListener listener);

	/**
	 * 移除
	 *
	 * @param listener
	 */
	void removeListener(ManufactureTaskListener listener);

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetManufactureTaskResponse> getManufactureTask(GetManufactureTaskRequest request);

//	/**
//	 * 查找多个
//	 *
//	 * @param collection 标识集合
//	 * @return
//	 */
//	Result<List<GetManufactureTaskResponse>> listManufactureTaskById(Collection<Long> collection);
//
	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetManufactureTaskResponse>> listManufactureTask(ListManufactureTaskRequest request);

	/**
	 * 统计个数
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Integer> countManufactureTask(ListManufactureTaskRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetManufactureTaskResponse>> pageManufactureTask(ListManufactureTaskRequest request);

}
